package com.dwxt.community.dao;

import com.dwxt.community.entity.RubbishBagRecord;
import com.dwxt.community.entity.RubbishBagRecordExample;

import java.util.*;

import org.apache.ibatis.annotations.Param;

public interface RubbishBagRecordMapper {
    int countByExample(RubbishBagRecordExample example);

    int deleteByExample(RubbishBagRecordExample example);

    int deleteByPrimaryKey(String id);

    int insert(RubbishBagRecord record);

    int insertSelective(RubbishBagRecord record);

    List<RubbishBagRecord> selectByExample(RubbishBagRecordExample example);

    RubbishBagRecord selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") RubbishBagRecord record, @Param("example") RubbishBagRecordExample example);

    int updateByExample(@Param("record") RubbishBagRecord record, @Param("example") RubbishBagRecordExample example);

    int updateByPrimaryKeySelective(RubbishBagRecord record);

    int updateByPrimaryKey(RubbishBagRecord record);

    /**
     * 批量插入
     * @param rubbishBagRecords
     * @return
     */
    int batchInsert(@Param("records") List<RubbishBagRecord> rubbishBagRecords);

    RubbishBagRecord selectByBagId(String id);

    Date selectLastGotBagDateByUserId(String id);

    List<RubbishBagRecord> selectByBagIdList(@Param("bagIds")List<String> bagIds);
}